package com.icim.core.service;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.List;

import com.icim.core.pojo.FtpConfigure;

public interface IFtpService {

    public boolean connect() throws Exception;
    
    public boolean reconnect() throws Exception;

    public void disconnectFtp() throws IOException;

    public List<String> listFiles(String fileExt) throws IOException;

    public void downLoadFile(String fileName) throws UnsupportedEncodingException, IOException;

    public FtpConfigure getFtpConfigure();

    public void removeFiles(String fileName, boolean isOK) throws IOException;
    
    public void uploadFile(File file) throws IOException;
    
    public void uploadFile(File file,String ftpExportPath) throws IOException;
}
